package com.util;

public class getPackFile {

	public static void getPfile(String filename,int width,int height,int size)
	{
		System.out.println(filename+".png");
		System.out.println("format: RGBA8888");
		System.out.println("filter: Nearest,Nearest");
		System.out.println("repeat: none");
		int counter=0;
		for(int i=0;i<height/size;i++){
			for(int j=0;j<width/size;j++){
				System.out.println(filename);
				int x = i*size;
				int y = j*size;
				
				System.out.println("\trotate: false");
				System.out.println("\txy: "+y+", "+x+"");
				System.out.println("\tsize: "+size+", "+size+"");
				System.out.println("\torig: "+size+", "+size+"");
				System.out.println("\toffset: 0, 0");
				System.out.println("\tindex: "+counter);
				counter++;
			}
		}
	}
	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		String fileName="bg";
		int width = 1024;
		int height = 512;
		int size = 512;
		getPfile(fileName,width,height,size);
	
	}
	public static void fresh()
	{
		
	}

}
